/**
 * @file drv_tim_encoder.h
 * @brief HAL CUBEMX DRIVER
 * 
 * @author dalin (dalin@open-robot.com)
 * @version 1.0
 * @date 2023-05-10
 * 
 * @copyright Copyright (c) 2023  Open Robot Tech.co, Ltd
 * 
 * @par 修改日志:
 * <table>
 * <tr><th>Date       <th>Version <th>Author  <th>Description
 * <tr><td>2023-05-10 <td>1.0     <td>dalin     <td>内容
 * </table>
 */


#ifndef HAL_TIM_ENCODER_H
#define HAL_TIM_ENCODER_H

#include "drv_config.h"
#ifdef USE_TIM_ENCODER_DRIVER
#include <stdint.h>
#include "drv_tim.h"

#define FULL_ENCODER 50000


int drv_tim_encoder_start(timNumber_e tim, timChannel_e channel);

int drv_tim_encoder_speed(timNumber_e tim, int *speed);

#endif /* USE_ENCODER_DRIVER */
#endif /* HAL_TIM_ENCODER_H   */
